package minishell;

public class CmdletHandlerTest implements Runnable {
	public static void main(String[] args) {
		new CmdletHandlerTest().run();
	}

	public void run() {
		this.testSplit();
	}

	private void testSplit()
	{
		CmdletHandler handler = new CmdletHandler( null );
		String[] cmds = { "ls", "", " \t ", "ls -l", "\t  ls   ",
			"ls --all --long" };
		for( String cmd : cmds )
			ln( '[' + cmd + "] => " + handler.split( cmd ) );
	}

	private void ln(String str) {
		System.out.println(str);
	}
}
